<ion-view view-title="提交运单" cache-view="true" hide-back-button="false" ng-init="init()">
  <ion-content class="gray_back">
    <section class="g_main">
      <!-- 提交运单 -->
      <section class="truck_line track_line-edit fill_info">
        <ul>
          <li ng-click="choosedate()" class="select">
            <h4>装货日期</h4>
            <input disabled ng-model="waybillInfo.shipment_time_disp" style="color: black"/>
          </li>
        </ul>
        <ul>
          <li class="select" ng-click="toMap(0)">
            <h4>起点</h4>
            <input disabled  ng-model="waybillInfo.src_location_title"/>
          </li>
          <li>
            <h4>详细地址</h4>
            <input type="text" placeholder="推荐填写" ng-model="waybillInfo.start_addr">
          </li>
          <li class="select" ng-click="toProvince(1)">
            <h4>终点</h4>
            <input disabled ng-model="waybillInfo.end_area_disp"/>
          </li>
          <li>
            <h4>详细地址</h4>
            <input type="text" placeholder="推荐填写" ng-model="waybillInfo.end_addr">
          </li>
        </ul>
        <ul>
          <li>
            <h4>货品名称</h4>
            <input type="text" placeholder="请输入货品名称" ng-model="waybillInfo.cargo_name">
          </li>
          <li class="select" ng-click="selectCargoType()">
            <h4>货品类型</h4>
            <input disabled ng-model="waybillInfo.cargo_type_disp" style="color: black">
          </li>
          <li>
            <h4>体积</h4>
            <input type="number" placeholder="请输入体积" ng-model="waybillInfo.cargo_bulk">
            <span>立方</span>
          </li>
          <li>
            <h4>重量</h4>
            <input type="number" placeholder="请输入重量" ng-model="waybillInfo.cargo_weight">
            <span>吨</span>
          </li>
        </ul>
        <ul>
          <li style="height:50px">
            <h4>保证金</h4>
            <input type="number" placeholder="请输入保证金" ng-model="waybillInfo.deposit">
            <span>元</span>
          </li>
          <li style="height:50px">
            <h4 style="line-height: 20px; height:50px">初定运价<BR>（除保证金）</h4>
            <input type="number" placeholder="初定运价（除保证金）" ng-model="waybillInfo.price">
            <span>元</span>
          </li>
        </ul>
        <ul>
          <li>
            <h4>装货联系人</h4>
            <input type="text" placeholder="请输入装货联系人" ng-model="waybillInfo.consignor">
          </li>
          <li>
            <h4>联系人电话</h4>
            <input type="text" placeholder="请输入联系人电话" ng-model="waybillInfo.consignor_phone">
          </li>
          <li>
            <h4>备注</h4>
            <input type="text" placeholder="请输入备注信息" ng-model="waybillInfo.remark ">
          </li>
          <li class="radio" style="padding:0px;display: none">
            <ion-toggle ng-model="waybillInfo.payment_term" toggle-class="toggle-calm" style="height: 44px"><h4>线下支付</h4></ion-toggle>
          </li>
        </ul>

        <ul ng-show="waybillInfo.payment_term">
          <li>
            <h4>指定收款人</h4>
            <input type="text" placeholder="请输入收款人姓名" ng-model="waybillInfo.payee">
          </li>
          <li>
            <h4>身份证号</h4>
            <input type="text" placeholder="请输入身份证号" ng-model="waybillInfo.payee_idcard">
          </li>
          <li>
            <h4>开户行</h4>
            <input type="text" placeholder="请输入开户行" ng-model="waybillInfo.bank_name">
          </li>
          <li>
            <h4>银行卡号</h4>
            <input type="text" placeholder="请输入银行卡号" ng-model="waybillInfo.bank_card">
          </li>
        </ul>
        <button class="btn_save" ng-click="waybillSubmit()">提  交</button>
      </section>
    </section>
  </ion-content>
</ion-view>
